package com.dreamer.domain.lottery;

import javax.persistence.Entity;
import java.util.Date;

/**
 * 抽奖活动
 */
@Entity
public class Lottery {

    private Integer id;

    private String name;//抽奖活动名称

    private Date startTime;

    private Date endTime;

    private Integer number;//满足条件的抽奖人数

    private Integer sum;//当前总数

    private Integer times;//次数

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
}
